Skip to content

Fail signing when the native signing tool returns an error - #2486

Closed
Alexander Holstrup (aholstrup1) wants to merge 1 commit into
mainfrom
aholstrup1-propagate-signing-failures
Closed

Alexander Holstrup (aholstrup1) wants to merge 1 commit into
mainfrom
aholstrup1-propagate-signing-failures

Conversation

@aholstrup1

@aholstrup1 Alexander Holstrup (aholstrup1) commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 44dad927fb6c5346ee3549a587782b42b5b2df68

Dimension Assessment Rationale
Change confidence 9/10 ↑ One shared exit-code check preserves all existing signing arguments.
↑ Native-process failure and success tests pass for all three paths on Windows PowerShell 5.1 and PowerShell 7.
↓ Live Azure signing and Linux execution were not tested.
Diagnosis confidence 9.5/10 ↑ All three native signer calls previously returned without checking their exit status; Windows PowerShell does not automatically throw on native nonzero exit.
↑ Tests exercise a real native process returning exit code 23.
Evidence fit 7/10 ↑ Unchecked native failures explain how failed signing can leave the pipeline successful.
↓ The reported logs do not include the native exit status, so this incident's exit code is unconfirmed.

❔What, Why & How

Fail the pipeline when the signing tool returns a nonzero exit code, and include that code in the error message. Applies to Trusted Signing and both Key Vault signing methods.

Fixes #2452. Includes tests for successful and failed signer exits. No retries or signature verification added.

✅ Checklist

  • Add tests (E2E, unit tests)
  • Update RELEASENOTES.md
  • Update documentation (e.g. for new settings or scenarios)
  • Add telemetry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Signing fails, but pipeline finishes successfully

1 participant